package org.example.strategy;

import org.example.strategy.improve.NoFlyBehavior;

/**
 * @author wangbin
 * @date 2024/4/20
 * @vesion 1.0
 */
public class ToyDuck extends Duck{

    public ToyDuck() {
        flyBehavior=new NoFlyBehavior();
    }
    @Override
    public void display() {
        System.out.println("网剧呀");

    }

    @Override
    public void quack() {
        super.quack();
        System.out.println("网剧呀==大鸡蛋");

    }

    @Override
    public void swim() {
        super.swim();
        System.out.println("网剧呀==发发发");

    }
}
